/*
 * @Author: 耿远风
 * @Date: 2020-10-16 15:22:27
 * @LastEditors: 耿远风
 * @LastEditTime: 2020-10-19 16:39:51
 * @Description: 轮播
 */
import { BaseModel } from '../../base/base/BaseModel';
import { prop } from 'typegoose';
export class LunBoModel extends BaseModel {
  // 标题
  @prop({ required: true })
  title!: string;
  // 封面
  @prop({ required: true })
  cover!: string;
  // 类型
  @prop({ required: true })
  type!: 'h5' | 'pages';
  // 是否启用
  @prop() isFocus?: boolean;
  // 点击链接
  @prop() url!:string;
}
export const LunBo = new LunBoModel().getModelForClass(LunBoModel, {
  schemaOptions: {
    timestamps: true,
    versionKey: false,
  },
});
